//
//  UIButton+HMBtn.m
//  weibo
//
//  Created by apple on 2016/11/14.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "UIButton+HMBtn.h"

@implementation UIButton (HMBtn)

- (instancetype)initWithTitle:(NSString *)title titleColor:(UIColor*)titleColor fontSize:(CGFloat)fontSize backeImgName:(NSString *)backImgName
{
    self = [self init];
    if (self) {
        [self setTitle:title forState:UIControlStateNormal];
        [self setTitleColor:titleColor forState:UIControlStateNormal];
        self.titleLabel.font = [UIFont systemFontOfSize:fontSize];
        [self setBackgroundImage:[UIImage imageNamed:backImgName] forState:UIControlStateNormal];
        
    }
    return self;
}


@end
